package com.helpustotravel.model.jdo;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class Position {

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;
    
    @Persistent
    private long id;

    @Persistent
    private String travellerName;
    
    @Persistent
    private double x;
    
    @Persistent
    private double y;
    
    @Persistent
    private Date date;
    
    @Persistent
    private String adresse;
    
    @Persistent
    private double adresseX;
    
    @Persistent
    private double adresseY;
    
    @Persistent
    private int level;
    
    public Position() {
    	this.id = 0;
    	this.travellerName = "";
    	this.x = 0.0;
    	this.y = 0.0;
    	this.date = null;
    	this.adresse = "";
    	this.adresseX = 0.0;
    	this.adresseY = 0.0;
    	this.level = 0;
    }

	public Key getKey() {
		return key;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getTravellerName() {
		return travellerName;
	}

	public void setTravellerName(String travellerName) {
		this.travellerName = travellerName;
	}

	public double getX() {
		return x;
	}

	public void setX(double x) {
		this.x = x;
	}

	public double getY() {
		return y;
	}

	public void setY(double y) {
		this.y = y;
	}

	public String getAdresse() {
		return adresse;
	}

	public void setAdresse(String adresse) {
		this.adresse = adresse;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public double getAdresseX() {
		return adresseX;
	}

	public void setAdresseX(double adresseX) {
		this.adresseX = adresseX;
	}

	public double getAdresseY() {
		return adresseY;
	}

	public void setAdresseY(double adresseY) {
		this.adresseY = adresseY;
	}
}
